//
//  WKSearchTagCell.m
//  WKMaybell
//
//  Created by 何文虎 on 2018/12/22.
//  Copyright © 2018 何文虎. All rights reserved.
//

#import "WKSearchTagCell.h"

@interface WKSearchTagCell ()

@end

@implementation WKSearchTagCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self == [super initWithFrame:frame]) {
        [self layoutTagCell];
    }
    return self;
}

- (void)layoutTagCell{
    
    [self.contentView addSubview:self.tagBtn];
    [self.tagBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self);
    }];
    
    _tagBtn.layer.masksToBounds = YES;
    _tagBtn.layer.cornerRadius = 5;
    
    _tagBtn.backgroundColor = UIColorFromHex(0x979797);
    
   
    [_tagBtn setTitleColor:UIColorFromHex(0x3C3C3C) forState:UIControlStateNormal];
    _tagBtn.titleLabel.font = PFSC_MediumFont(12);
    
    
    
}

- (UIButton*)tagBtn{
    if (!_tagBtn) {
        _tagBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    }
    return _tagBtn;
}

@end
